Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Functions
Drawing Appearance-Compliant Controls /


DrawThemeGenericWell

NEW WITH THE APPEARANCE MANAGER

Draws an image well frame consistent with the current theme.

pascal OSStatus DrawThemeGenericWell (
                     const Rect *inRect,
                     ThemeDrawState inState,
                     Boolean inFillCenter);
inRect
On input, a pointer to a rectangle.
inState
A value specifying the state in which the image well frame is to be drawn; see "Appearance-Compliant Draw State Constants". The well can only be drawn as active or inactive; passing kThemeStatePressed will result in an error being returned.
inFillCenter
A Boolean value indicating whether the image well frame is to be filled in with white.
function result
A result code; see "Result Codes".
DISCUSSION
The DrawThemeGenericWell function draws an image well frame, for use with custom image well controls. You can specify that the center of the well be filled in with white.

SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling the DrawThemeGenericWell function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998